﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace QLNS_Client
{
    public partial class frm_TIN_HOC : Form
    {
        ServiceReference1.Service_QLNSClient sv = new ServiceReference1.Service_QLNSClient();
         public frm_TIN_HOC()
        {
            InitializeComponent();
        }

         private void frm_TIN_HOC_Load(object sender, EventArgs e)
         {
             Load_TH();
         }
         public void Load_TH()
         {
             dataGridView_TIN_HOC.DataSource = sv.getTH();
            
             
         }

         private void dataGridView_TIN_HOC_CellClick(object sender, DataGridViewCellEventArgs e)
         {
             txt_Ma_TH_TH.Text = dataGridView_TIN_HOC.CurrentRow.Cells[0].Value.ToString();
             txt_DienGiai_TH.Text = dataGridView_TIN_HOC.CurrentRow.Cells[1].Value.ToString();
         }
    }
}
